body{
	background: orange;
	font-size: 20px;
	font-family: Verdana,sans-serif;
	padding: 0;
	margin: 0 auto;
	text-align: center;
	
}

/*ナビゲーション*/


.menu ul {
    margin:0;
    padding:10px;
    list-style: none;
    background: gray;
    color: #fff;
    text-decoration: none;
	justify-content: center;
}

.menu li a {
    display: block;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    padding:10px;
    text-decoration: none;
    justify-content: center;
}

.menu ul:after {
    content: "";
    display: block;
    clear: both;
}

.menu li {
    display: inline-block;
    width: auto;
    justify-content: center;
}

.menu :hover{
    opacity: 0.8;
}


/*メイン*/

h1{
	font-size: 40px;
}

.container{
	width: 400px;
	margin: 8px auto;
	background: #fff ;
	border-radius: 4px;
	padding: 16px;
	position:relative;
}

#question{
	margin-bottom: 18px;
	font-weight: bold;
}

#choices{
	list-style: none;
	padding: 0;
	margin-bottom: 16px;
	text-align: left;
}

#choices > li{
	border:1px solid #ccc;
	border-radius: 4px;
	padding:10px;
	margin-bottom:10px;
	cursor:pointer;

}

#choices > li:hover{
	background:#f8f8f8;
}

#choices > li.correct{
	background: #d4edda;
	border-color: #c3e6cb;
	color: #155724;
	font-weight: bold;

}

#choices > li.select{
	background: #d4edda;
	border-color: #c3e6cb;
	color: #155724;
	font-weight: bold;

}

#choices > li.correct::after{
	content:'〇 正解!'
}

#choices > li.wrong{
	background: #f8d8da;
	border-color: #f5c6cb;
	color: #721c24;
	font-weight: bold;
}

#choices > li.wrong::after{
	content:'× 不正解!'
}


#btn,#result > a{
	background: #3498db;
	padding: 8px;
	border-radius: 4px;
	cursor:pointer;
	text-align: center;
	color:#fff;
	box-shadow:0 4px 0 #2880b9;
}
#btn.disabled{
	background: #ccc;
	box-shadow: 0 4px 0 #bbb;
	opacity:0.7;
}

#result{
	position:absolute;
	width:300px;
	background: #d4edda;
	padding: 30px;
	box-lines: 0 4px 8px rgba(0,0,0,0.2);
	top:50px;
	left:0;
	right:0;
	margin:0 auto;
	border-radius: 4px;
	text-align: center;
	transition:0.4s;
}

#result.hidden{
	transform:translateY(-500px);
}

#result > p{
	font-size:24px;
}

#result > a{
	display:block;
	text-decoration: none;
}

footer{
	width: 100%;
    font-size:14px;
    padding: auto 0;
	margin: 0;
    background: gray;
    color: #fff;
    text-align: center;
	position: absolute;
	bottom: 0;

}

@media (max-width: 420px){
	
	.container{
		width: 320px;
	}

	#result{	
		position:absolute;
		width:320px;
		padding: 10px;
	}

	.menu ul {
		margin:0;
		padding:0px;
	}
	
	.menu li a {
		font-size: 12px;
	}

}

@media (max-width: 320px){

	h1{
		font-size:30px;
	}

	.container{
		width: 260px;
	}

	#result{	
		position:absolute;
		width:260px;
		padding: 10px;
	}

	.menu ul {
		margin:0;
		padding:0px;
	}
	
	.menu li a {
		font-size: 12px;
	}

}

@media (max-width: 280px){

	.container{
		width: 220px;
	}

	#result{	
		position:absolute;
		width:220px;
		padding: 10px;
	}

	.menu ul {
		margin:0;
		padding:0px;
	}
	
	.menu li a {
		font-size: 8px;
	}

}

.resizeimage img{
	width:100%;
}

